package com.fyyg.service;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.fyyg.dal.TBusiProductMapper;
import com.fyyg.interfaces.TBusiProductService;
import com.fyyg.model.TBusiProduct;


@Service("TBusiProductService")
public class TbusiProductServerImpI implements TBusiProductService{

	@Resource private TBusiProductMapper productMapper;

	@Override
	public int deleteByPrimaryKey(Integer proId) {
		return productMapper.deleteByPrimaryKey(proId);
	}

	@Override
	public int insert(TBusiProduct record) {
		return productMapper.insert(record);
	}

	@Override
	public TBusiProduct selectByPrimaryKey(Integer proId) {
		// TODO Auto-generated method stub
		return productMapper.selectByPrimaryKey(proId);
	}

	@Override
	public List<TBusiProduct> selectAll() {
		return productMapper.selectAll();
	}

	@Override
	public int updateByPrimaryKey(TBusiProduct record) {
		return productMapper.updateByPrimaryKey(record);
	}

	@Override
	public List<TBusiProduct> queryEventPro() {
		return productMapper.queryEventPro();
	}

	@Override
	public List<TBusiProduct> queryTbusiProductByStatus(String proStatus) {
		return productMapper.queryTbusiProductByStatus(proStatus);
	}

	@Override
	public List<TBusiProduct> queryTbusiProductByProduct(Map<String, Object> proMap) {
		return productMapper.queryTbusiProductByProduct(proMap);
	}

	@Override
	public int queryTbusiProductByProductCount(Map<String, Object> proMap) {
		return productMapper.queryTbusiProductByProductCount(proMap);
	}
	
}
